.onAttach <- function(...) {
  # needed <- core[!is_attached(core)]
  # if (length(needed) == 0)
  #   return()
  # 
  crayon::num_colors(TRUE)
  masscleaner_attach()
  
  # if (!"package:conflicted" %in% search()) {
  #   x <- masscleaner_conflicts()
  #   msg(masscleaner_conflict_message(x), startup = TRUE)
  # }
  packageStartupMessage(paste0("masscleaner ", masscleaner_version, " (", update_date, ')'))
   
}

is_attached <- function(x) {
  paste0("package:", x) %in% search()
}
